package com.gdhz.xiaohengqin.device.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author Swallows
 * @date 2025-05-30 17:05
 */
@Getter
@Setter
@NoArgsConstructor
public class QrCodeData {

    /**
     * 二维码透传数据
     */
    @JsonProperty("原始十六进制数据")
    private String hexData;

    @JsonProperty("转换为字符串")
    private String url;

    @JsonProperty("时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime scanTime;

    @JsonProperty("门号")
    private int doorNo;

    @JsonProperty("SN")
    private int deviceSn;

    @JsonProperty("进出")
    private String inout;

    @JsonProperty("流水号")
    private int No;
}
